# Author:sp
# CreaTime: $(DATE)
# FileName: $(NAME)
# Description: simple introdution of the code
class Person(object):              #Person继承object类
    def __init__(self,name,age):
        self.name=name
        self.age=age
    def info(self):
        print(self.name,self.age)

class Student(Person):
    def __init__(self,name,age,number):
        super().__init__(name,age)
        self.number=number          #初始化子类特有的属性
    def info(self):
        super().info()
        print(self.number)

class Teacher(Person):
    def __init__(self,name,age,teachofage):
        super().__init__(name,age)
        self.teachofage=teachofage

stu1=Student('jack',20,1001)
ts=Teacher('李老师',45,25)
stu1.info()
ts.info()